package ${domain}.action.ajax.wsys;

import org.springframework.beans.factory.annotation.Autowired;
import ${domain}.frame.auth.LocalData;
import ${domain}.module.wsys.mgr.DataManager;
import ${domain}.module.wsys.req.DataErrorRequest;
import ${domain}.module.wsys.req.DataLoginRequest;
import ${domain}.module.wsys.req.DataTaskRequest;
import ${domain}.module.wsys.req.DataTotalRequest;
import ${domain}.module.wsys.rsp.DataErrorResponse;
import ${domain}.module.wsys.rsp.DataLoginResponse;
import ${domain}.module.wsys.rsp.DataTaskResponse;
import ${domain}.module.wsys.rsp.DataTotalResponse;

public class DataAjax {

    @Autowired
    private DataManager dataManager;

    public DataTotalResponse total(DataTotalRequest request) {
        return dataManager.total(request, LocalData.getToken());
    }

    public DataLoginResponse login(DataLoginRequest request) {
        return dataManager.login(request, LocalData.getToken());
    }

    public DataErrorResponse error(DataErrorRequest request) {
        return dataManager.error(request, LocalData.getToken());
    }

    public DataTaskResponse task(DataTaskRequest request) {
        return dataManager.task(request, LocalData.getToken());
    }
}
